import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    msg: '我是拼接的',
  },
  getters: {},
  // 同步存-逻辑
  mutations: {
    set_msg(state, msg) {
      state.msg = msg + state.msg
    },
  },
  actions: {},
  modules: {},
})
